#ifndef BINARYNODE_H
#define BINARYNODE_H

#include "Node.h"

class BinaryNode : public Node // A node with two children, used for Add, Sub, Mod, Equ, Div, Mul nodes
{
	public:
		BinaryNode(Node * Left, Node * Right): left(Left), right(Right) {}
		~BinaryNode() { delete(left); delete(right); }
		Node * getLeft() const;
		Node * getRight() const;
	private:
		Node * left;
		Node * right;
};

#endif

